package com.sms.msger.msg.dao.hibernate;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.sms.msger.msg.dao.ITInvalidmsgDao;
import com.sms.msger.msg.persistence.TInvalidmsg;

/**
 * @author 20111012 by cxh
 */
public class TInvalidmsgDao extends HibernateDaoSupport implements ITInvalidmsgDao {
	private static final Log log = LogFactory.getLog(TInvalidmsgDao.class);

	public boolean addInvalidmsg(TInvalidmsg ca) {
		try{
			this.getHibernateTemplate().save(ca);
			log.debug("add invalidmsg instance success");
			return true;
		}catch(RuntimeException e){
			log.debug("add invalidmsg instance failed:",e);
			throw e;
		}
	}

}
